package com.songaw.cangku.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Clothes implements Serializable {
    private String uuid;
    @ApiModelProperty(value = " 颜色种类 1-8种，默认1")
    private Integer colorStyle;
    @ApiModelProperty(value = "颜色数量")
    private String colorNumber;

    @ApiModelProperty(value = "颜色，逗号隔开")
    private String colors;
    @ApiModelProperty(value = "尺寸类型 1-6种，默认1")
    private Integer sizestyle;
    @ApiModelProperty(value = "尺寸")
    private String size;
    @ApiModelProperty(value = "款号")
    private String modelNumber;
    @JSONField(format="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "日期")
    private Date date;

    @ApiModelProperty(value = "最后修改人")
    private String updateUser;
    @ApiModelProperty(value = "修改日期")
    private Long updateTime;
    @ApiModelProperty(value = "创建人")
    private String insertUser;
    @ApiModelProperty(value = "创建日期")
    private Long insertTime;
    @ApiModelProperty(value = "删除标识")
    private String deleteFlag;

    private static final long serialVersionUID = 1L;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public Integer getColorStyle() {
        return colorStyle;
    }

    public void setColorStyle(Integer colorStyle) {
        this.colorStyle = colorStyle;
    }

    public String getColorNumber() {
        return colorNumber;
    }

    public void setColorNumber(String colorNumber) {
        this.colorNumber = colorNumber;
    }

    public String getColors() {
        return colors;
    }

    public void setColors(String colors) {
        this.colors = colors == null ? null : colors.trim();
    }

    public Integer getSizestyle() {
        return sizestyle;
    }

    public void setSizestyle(Integer sizestyle) {
        this.sizestyle = sizestyle;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size == null ? null : size.trim();
    }

    public String getModelNumber() {
        return modelNumber;
    }

    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber == null ? null : modelNumber.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getInsertUser() {
        return insertUser;
    }

    public void setInsertUser(String insertUser) {
        this.insertUser = insertUser == null ? null : insertUser.trim();
    }

    public Long getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Long insertTime) {
        this.insertTime = insertTime;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Clothes other = (Clothes) that;
        return (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getColorStyle() == null ? other.getColorStyle() == null : this.getColorStyle().equals(other.getColorStyle()))
            && (this.getColorNumber() == null ? other.getColorNumber() == null : this.getColorNumber().equals(other.getColorNumber()))
            && (this.getColors() == null ? other.getColors() == null : this.getColors().equals(other.getColors()))
            && (this.getSizestyle() == null ? other.getSizestyle() == null : this.getSizestyle().equals(other.getSizestyle()))
            && (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
            && (this.getModelNumber() == null ? other.getModelNumber() == null : this.getModelNumber().equals(other.getModelNumber()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getInsertUser() == null ? other.getInsertUser() == null : this.getInsertUser().equals(other.getInsertUser()))
            && (this.getInsertTime() == null ? other.getInsertTime() == null : this.getInsertTime().equals(other.getInsertTime()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getColorStyle() == null) ? 0 : getColorStyle().hashCode());
        result = prime * result + ((getColorNumber() == null) ? 0 : getColorNumber().hashCode());
        result = prime * result + ((getColors() == null) ? 0 : getColors().hashCode());
        result = prime * result + ((getSizestyle() == null) ? 0 : getSizestyle().hashCode());
        result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
        result = prime * result + ((getModelNumber() == null) ? 0 : getModelNumber().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getInsertUser() == null) ? 0 : getInsertUser().hashCode());
        result = prime * result + ((getInsertTime() == null) ? 0 : getInsertTime().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }
}